﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.WCF;
using Metro.Kashikoi.Common.Entity;
using Metro.Kashikoi.Common.ExceptionHandling;
using Microsoft.Practices.EnterpriseLibrary.Validation.Integration.WCF;

namespace Metro.Kashikoi.ServiceContract.Security
{
    [ServiceContractAttribute]
    [ExceptionShielding]
    public interface IValidateService
    {
        /// <summary>
        /// Validates the user.
        /// </summary>
        /// <param name="id">The id.</param>
        /// <param name="password">The password.</param>
        /// <returns></returns>
        [OperationContract]
        [ApplyDataContractResolver]
        [FaultContract(typeof(ServiceFault))]
        [FaultContract(typeof(ValidationFault))]
        bool ValidateUser(string id, string password);
    }
}
